;
; INF file for installing the Nuvoton Consumer IR Port Driver
;
;
; Copyright 2009 Nuvoton Technology Corporation
;
;
;
[Version]
Signature="$WINDOWS NT$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%NUVOTON%
DriverVer=08/31/2009,8.1.63.2001
CatalogFile=nuvotonir.cat

[DestinationDirs]
DefaultDestDir = 12
IR_CoInstaller_CopyFiles = 11

[SourceDisksNames.x86]
1 = %DiskId1%,,,\i386

[SourceDisksNames.amd64]
1 = %DiskId1%,,,\amd64

[SourceDisksNames.ia64]
1 = %DiskId1%,,,\ia64

[SourceDisksFiles]
nuvotonir.sys  = 1,,
WdfCoInstaller01009.dll  = 1,,


[Manufacturer]
%StdMfg%=Standard,NTx86, NTia64, NTamd64

[Standard]
%nuvotonir.DeviceDesc%=nuvotonir_Device, ACPI\WEC1024
%nuvotonir.DeviceDesc%=nuvotonir_Device, ACPI\WEC1025

[Standard.NTx86]
%nuvotonir.DeviceDesc%=nuvotonir_Device, ACPI\WEC1024
%nuvotonir.DeviceDesc%=nuvotonir_Device, ACPI\WEC1025

[Standard.NTia64]
%nuvotonir.DeviceDesc%=nuvotonir_Device, ACPI\WEC1024
%nuvotonir.DeviceDesc%=nuvotonir_Device, ACPI\WEC1025

[Standard.NTamd64]
%nuvotonir.DeviceDesc%=nuvotonir_Device, ACPI\WEC1024
%nuvotonir.DeviceDesc%=nuvotonir_Device, ACPI\WEC1025


[nuvotonir_Device.NT]
CopyFiles=Drivers_Dir


[nuvotonir_Device.NT.HW]
AddReg=nuvotonir_Device.NT.AddReg

[nuvotonir_Device.NT.AddReg]                            
HKR,,DeviceCharacteristics,0x10001,0x0100         ; Use same security checks on relative opens
HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)"      ; Allow generic-all access to Built-in administrators and Local system 

[Drivers_Dir]
nuvotonir.sys

;-------------- Service installation
[nuvotonir_Device.NT.Services]
AddService = nuvotonir,%SPSVCINST_ASSOCSERVICE%, nuvotonir_Service_Inst

; -------------- nuvotonir driver install sections
[nuvotonir_Service_Inst]
DisplayName    = %nuvotonir.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\nuvotonir.sys
LoadOrderGroup = Extended Base
AddReg         = nuvotonir_service.AddRegistry

[nuvotonir_service.AddRegistry]
;
; Default the "time needed after carrier change" to 100millisec 
; 
HKR,,"CarrierChangeResetTime",0x00010001, 100

; Active power Key (set to NOCLOBBER)
HKR,"PowerKey","PowerKey",0x00000003,\
   0x02, 0x50, 0x50, 0x5a, 0x55, 0x56, 0xa0, \
   0x5a, 0x55, 0x55, 0x39, 0xa9, 0xff, 0xff, \
   0xff, 0xff, 0xf0, 0xff, 0xff, 0xff, 0xff, \
   0xff

; RC6 power key
HKR,"PowerKey","PowerKeyRC6",0x00000001,\
   0x02, 0x50, 0x50, 0x5a, 0x55, 0x56, 0xa0, \
   0x5a, 0x55, 0x55, 0x39, 0xa9, 0xff, 0xff, \
   0xff, 0xff, 0xf0, 0xff, 0xff, 0xff, 0xff, \
   0xff

; RC5 power key
HKR,"PowerKey","PowerKeyRC5",0x00000001,\
   0x00, 0x00, 0x0c, 0x10, 0x00, 0x00, 0x00, \
   0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x1f, \
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
   0x00

; NEC power key
HKR,"PowerKey","PowerKeyNEC",0x00000001,\
   0x01, 0x00, 0x20, 0xdf, 0x10, 0xef, 0x00, \
   0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, \
   0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, \
   0x00

;
;--- nuvotonir_Device Coinstaller installation ------
;
[nuvotonir_Device.NT.CoInstallers]
AddReg=IR_CoInstaller_AddReg
CopyFiles=IR_CoInstaller_CopyFiles




[IR_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,  "WdfCoInstaller01009.dll,WdfCoInstaller","CIRCoInst.dll,IRCoInstaller"

[IR_CoInstaller_CopyFiles]
WdfCoInstaller01009.dll

[nuvotonir_Device.NT.Wdf]
KmdfService =  nuvotonir, nuvotonir_Device_WdfSection
[nuvotonir_Device_WdfSection]
KmdfLibraryVersion = 1.9


[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
NUVOTON = "Nuvoton Technology Corporation"
StdMfg  = "Nuvoton Technology Corporation"
DiskId1 = "Nuvoton CIR Installation Disk #1"
nuvotonir.DeviceDesc = "Nuvoton CIR Transceiver"
nuvotonir.SVCDESC = "Nuvoton CIR Transceiver"

